package lab02.test35;

import java.util.Scanner;

public class Test35 {
        public static void main(String[] args) {
            Scanner sc=new Scanner(System.in);
            Manager manager=new Manager();
            Salesman salesman=new Salesman();
            Worker worker=new Worker();
            System.out.println();

            System.out.println("请输入经理的工资:");
            manager.Managersalary=sc.nextDouble();
            manager.Salary();
            System.out.println();

            System.out.println("请输入销售人员的基础工资,销售额,提成率：");
            salesman.Salesmansalary=sc.nextDouble();
            salesman.sales=sc.nextDouble();
            salesman.bonus=sc.nextDouble();
            salesman.Salary();
            System.out.println();

            System.out.println("请输入一般工人的每天工资和工作天数：");
            worker.Workersalary=sc.nextDouble();
            worker.day=sc.nextInt();
            worker.Salary();
        }
}


